#ifndef STR_H
#define STR_H
#include "type.h"
#include <windows.h>

namespace Zen{ namespace utility{ 
	
string ws2s(const std::wstring& ws);

wstring s2ws(const string& s);

wstring string_to_wstring(const string& src, int character_set = CP_ACP);

string wstring_to_string(const wstring& src, int character_set = CP_ACP);

string conver_string(const string& src, int character_set_src, int character_set_des);

string& replace_all(string& str, const string& old_value, const string& new_value);

string& replace_all_distinct(string& str, const string& old_value, const string& new_value);

int seperate_string( IN char* buf, int size, string_vector& strings, char delimit );

int seperate_string( const string& src, string_vector& strings, char delimit );

}}

#endif